﻿
 
 

// ******************************************************
// 这段代码是自动生成的
// 修改里面的代码，下次生成的时候会被覆盖
// ******************************************************
using System;
using System.Collections.Generic;
using System.Collections.Specialized;
using System.Diagnostics;
using System.ServiceModel;
using Sharp.Application;
using System.ServiceModel.Activation;
using Sharp.DataTransferObject.CMS;
using Sharp.Infrastructure.Search;
using Sharp.Infrastructure;
using Sharp.Infrastructure.IoC;
using Sharp.Infrastructure.Interfaces;
using Sharp.ServiceContracts.CMS;

namespace Sharp.Services.CMS
{
	[DebuggerStepThrough]
	[AspNetCompatibilityRequirements(RequirementsMode = AspNetCompatibilityRequirementsMode.Allowed)]
	public class MemberService : IMemberService
	{
		private readonly IMemberService _impl = ServiceLocator.Instance.GetService<IMemberService>();
				public Result DeleteNoiseWords(Guid[] ids)
		{
			try
			{
				return _impl.DeleteNoiseWords(ids);
			}
			catch(Exception ex)
			{
				throw new FaultException<FaultData>(FaultData.CreateFromException(ex), FaultData.CreateFaultReason(ex));
			}
		}
		public Result SaveNoiseWord(NoiseWordDTO dtoModel)
		{
			try
			{
				return _impl.SaveNoiseWord(dtoModel);
			}
			catch(Exception ex)
			{
				throw new FaultException<FaultData>(FaultData.CreateFromException(ex), FaultData.CreateFaultReason(ex));
			}
		}
		public Result<NoiseWordDTO> GetNoiseWordInfo(Guid id)
		{
			try
			{
				return _impl.GetNoiseWordInfo(id);
			}
			catch(Exception ex)
			{
				throw new FaultException<FaultData>(FaultData.CreateFromException(ex), FaultData.CreateFaultReason(ex));
			}
		}
		public Result<IEnumerable<NoiseWordDTO>> GetNoiseWordList()
		{
			try
			{
				return _impl.GetNoiseWordList();
			}
			catch(Exception ex)
			{
				throw new FaultException<FaultData>(FaultData.CreateFromException(ex), FaultData.CreateFaultReason(ex));
			}
		}
		public PagedResult<NoiseWordDTO> GetNoiseWordPaged(PagingFeature pf)
		{
			try
			{
				return _impl.GetNoiseWordPaged(pf);
			}
			catch(Exception ex)
			{
				throw new FaultException<FaultData>(FaultData.CreateFromException(ex), FaultData.CreateFaultReason(ex));
			}
		}
		public Result DeleteIPBlackLists(Guid[] ids)
		{
			try
			{
				return _impl.DeleteIPBlackLists(ids);
			}
			catch(Exception ex)
			{
				throw new FaultException<FaultData>(FaultData.CreateFromException(ex), FaultData.CreateFaultReason(ex));
			}
		}
		public Result SaveIPBlackList(IPBlackListDTO dtoModel)
		{
			try
			{
				return _impl.SaveIPBlackList(dtoModel);
			}
			catch(Exception ex)
			{
				throw new FaultException<FaultData>(FaultData.CreateFromException(ex), FaultData.CreateFaultReason(ex));
			}
		}
		public Result<IPBlackListDTO> GetIPBlackListInfo(Guid id)
		{
			try
			{
				return _impl.GetIPBlackListInfo(id);
			}
			catch(Exception ex)
			{
				throw new FaultException<FaultData>(FaultData.CreateFromException(ex), FaultData.CreateFaultReason(ex));
			}
		}
		public Result<IEnumerable<IPBlackListDTO>> GetIPBlackListList()
		{
			try
			{
				return _impl.GetIPBlackListList();
			}
			catch(Exception ex)
			{
				throw new FaultException<FaultData>(FaultData.CreateFromException(ex), FaultData.CreateFaultReason(ex));
			}
		}
		public PagedResult<IPBlackListDTO> GetIPBlackListPaged(PagingFeature pf)
		{
			try
			{
				return _impl.GetIPBlackListPaged(pf);
			}
			catch(Exception ex)
			{
				throw new FaultException<FaultData>(FaultData.CreateFromException(ex), FaultData.CreateFaultReason(ex));
			}
		}
		public Result<IEnumerable<OAuthDTO>> GetOauthList()
		{
			try
			{
				return _impl.GetOauthList();
			}
			catch(Exception ex)
			{
				throw new FaultException<FaultData>(FaultData.CreateFromException(ex), FaultData.CreateFaultReason(ex));
			}
		}
		public Result SaveOauth(OAuthDTO dtoModel)
		{
			try
			{
				return _impl.SaveOauth(dtoModel);
			}
			catch(Exception ex)
			{
				throw new FaultException<FaultData>(FaultData.CreateFromException(ex), FaultData.CreateFaultReason(ex));
			}
		}
		public PagedResult<CommentDTO> GetCommentPaged(PagingFeature pf)
		{
			try
			{
				return _impl.GetCommentPaged(pf);
			}
			catch(Exception ex)
			{
				throw new FaultException<FaultData>(FaultData.CreateFromException(ex), FaultData.CreateFaultReason(ex));
			}
		}
		public Result DeleteComments(Guid[] ids)
		{
			try
			{
				return _impl.DeleteComments(ids);
			}
			catch(Exception ex)
			{
				throw new FaultException<FaultData>(FaultData.CreateFromException(ex), FaultData.CreateFaultReason(ex));
			}
		}
		public PagedResult<FavoriteDTO> GetFavoritePaged(PagingFeature pf)
		{
			try
			{
				return _impl.GetFavoritePaged(pf);
			}
			catch(Exception ex)
			{
				throw new FaultException<FaultData>(FaultData.CreateFromException(ex), FaultData.CreateFaultReason(ex));
			}
		}
		public Result DeleteFavorites(Guid[] ids)
		{
			try
			{
				return _impl.DeleteFavorites(ids);
			}
			catch(Exception ex)
			{
				throw new FaultException<FaultData>(FaultData.CreateFromException(ex), FaultData.CreateFaultReason(ex));
			}
		}
	}
}